package com.ccp.dev.system.model;

import java.math.BigDecimal;
import com.ccp.dev.core.basic.model.BaseModel;
import java.util.Date;

/**
 * 对象权限表 sys_obj_rights
 * 
 * @author hw
 * @date 2019-09-25 20:22:42
 */
public class SysObjRights extends  BaseModel<SysObjRights>
{
	private static final long serialVersionUID = 1L;

    public static  String RIGHT_TYPE_INDEX_COLUMN ="indexColumn";
    public static  String RIGHT_TYPE_INDEX_MANAGE ="indexManage";
    public static  String RIGHT_TYPE_POPUP_MSG ="popupMsg";

    /**
     * 主键
     */
	private String  id;
    /**
     * 对象类型(模块分类)
     */
	private String  objType;
    /**
     * 对象ID(模块数据ID)
     */
	private String  objectId;
    /**
     * 被授权对象ID
     */
	private String  ownerId;
    /**
     * 被授权对象名称
     */
	private String  ownerName;
    /**
     * 权限类型(0=用户；1=角色；2=组织)
     */
	private String  rightType;

	private Boolean switchAll;

    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getObjType() {
        return this.objType;
    }
    public void setObjType(String objType) {
        this.objType = objType;
    }
    public String getObjectId() {
        return this.objectId;
    }
    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }
    public String getOwnerId() {
        return this.ownerId;
    }
    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }
    public String getRightType() {
        return this.rightType;
    }
    public void setRightType(String rightType) {
        this.rightType = rightType;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public Boolean getSwitchAll() {
        return switchAll;
    }

    public void setSwitchAll(Boolean switchAll) {
        this.switchAll = switchAll;
    }

    @Override
    public String toString() {
        return "SysObjRights{" +
                "id='" + id + "," +
                "objType='" + objType + "," +
                "objectId='" + objectId + "," +
                "ownerId='" + ownerId + "," +
                "ownerName='" + ownerName + "," +
                "switchAll='" + switchAll + "," +
                "rightType='" + rightType +
                '}';
}

}
